@extends('layout/header')
@section('headcss')
<style>
    .selecttab{
        background-color:#840100;
    }
</style>
    @stop
@section('content')
    <div id="content">
        <div class="container">
            <div class="title"><span> </span><span style="background:#f6a43b;top:auto;bottom:14px"></span><b>紧急寻人</b></div>
            <div class="find-screen">
                <div class="t clearfix">
                    <div class="label fl">寻人类型</div>
                    <div class="fl r">
                        <ul class="clearfix">
                            <li  @if (isset($typeid) && $typeid==0) class="selecttab" @endif onclick="searchtype(this)" value="0">全部</li>
                            <li  @if (isset($typeid) && $typeid==1) class="selecttab" @endif onclick="searchtype(this)" value="1">寻找老友</li>
                            <li  @if (isset($typeid) && $typeid==2) class="selecttab" @endif onclick="searchtype(this)" value="2">寻找战友</li>
                            <li  @if (isset($typeid) && $typeid==3) class="selecttab" @endif onclick="searchtype(this)" value="3">家寻亲人</li>
                            <li  @if (isset($typeid) && $typeid==4) class="selecttab" @endif onclick="searchtype(this)" value="4">亲人寻家</li>
                            <li  @if (isset($typeid) && $typeid==5) class="selecttab" @endif onclick="searchtype(this)" value="5">台海寻人</li>
                            <li  @if (isset($typeid) && $typeid==6) class="selecttab" @endif onclick="searchtype(this)" value="6">海外寻人</li>
                        </ul>
                    </div>
                </div>
                <div class="b clearfix">
                    <div class="label fl">关键字检索</div>
                    <div class="fl r">
                        <form action="">
                            <input type="text" id="search_content" placeholder="请输入被寻人关键信息，用逗号隔开（可搜索姓名，性别，省市）"/>&nbsp;&nbsp;<button class="btn btn-default" onclick="page(1)" type="button">搜索</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div id="searchbox">
        <div class="title-3 container">共 <span class="red">{{$defaultinfos->total()}}</span>条寻人信息</div>
        <div class="find-list container">
            <ul class="clearfix">
                @if(!empty($defaultinfos))
                @foreach($defaultinfos as $v)
                <li class="clearfix"><i class="fl"><img src="{{URL::asset('img/'.$v['miss_pic'])}}" alt=""/></i>
                    <div class="fr">
                        <p>类型:@if($v['find_type'] == 1) 寻找老友 @elseif($v['find_type'] == 2) 寻找战友 @elseif($v['find_type'] == 3)家寻亲人 @elseif($v['find_type'] ==4) 亲人寻家 @elseif($v['find_type'] ==5) 台海寻人 @elseif($v['find_type']==6) 海外寻亲 @endif</p>
                        <p>编号：{{$v['id']}}</p>
                        <p>姓名：{{$v['miss_name']}}</p>
                        <p>性别：{{$v['miss_sex']}}</p>
                        <p>出生日期：{{$v['miss_barth']}}</p>
                        <p>失散日期：{{$v['miss_date']}}</p>
                        <p>失散地点/（被寻人/朋友）曾经所在地:{{$v['miss_access']}},{{$v['maybe_access']}}</p><a class="red" href="/xrdt/{{$v['id']}}.html">查看详情</a>
                    </div>
                </li>
                    @endforeach
                    @endif
            </ul>
        </div>
        <div class="page container">
            <ul class="clearfix">
                @if(!empty($defaultinfos))
                {!!  $defaultinfos->links() !!}
                    @endif
            </ul>
        </div>
        </div>
    </div>
    @stop
@section('js')
    <script src="{{URL::asset('js/findlist.js')}}"></script>
    @stop